package com.neusoft.nep.supervisor.service.impl;

import com.neusoft.nep.supervisor.dao.ISupervisorDao;
import com.neusoft.nep.supervisor.service.ISupervisorService;
import com.neusoft.neu24.nep.entity.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

/**
 * SupervisorServiceImpl 公众监督员模块业务实现类
 *
 * @author Administrator
 * @version 2024/05/24 09:58
 **/
@Service
//@Scope("prototype")
public class SupervisorServiceImpl  implements ISupervisorService {
//    根据类型在容器中查找ISupervisorDao接口的实现类对象然后自动注入
    @Autowired
// 接口隔离原则
    private ISupervisorDao supervisorDao;

    public void setSupervisorDao(ISupervisorDao supervisorDao) {
        this.supervisorDao = supervisorDao;
    }

    @Override
    public Member login(String logid, String logpwd) {
        System.out.println(supervisorDao.hashCode());
        return supervisorDao.login(logid, logpwd);
    }
}